<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_resource_knowledge_point_ref".
 *
 * @property string $id
 * @property string $resource_id 资源id
 * @property string $point_id 知识点id
 * @property string $course_id
 * @property int $flag
 */
class TResourceKnowledgePointRef extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_resource_knowledge_point_ref';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['flag'], 'integer'],
            [['id', 'resource_id', 'point_id', 'course_id'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'resource_id' => 'Resource ID',
            'point_id' => 'Point ID',
            'course_id' => 'Course ID',
            'flag' => 'Flag',
        ];
    }
}
